package com.ly.emp.bean.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 考核周期树-vo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "考核周期树")
public class BasePeriodTree {

    /**
     * 周期编码
     */
    @Schema(description = "周期编码")
    private String periodCode;

    /**
     * 周期名称
     */
    @Schema(description = "周期名称")
    private String periodName;

    /**
     * 子节点
     */
    @Schema(description = "子节点")
    private List<BasePeriodTree> child;

    public BasePeriodTree(String periodCode, String periodName) {
        this.periodCode = periodCode;
        this.periodName = periodName;
    }
}
